﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CapaPresentacion
{
    public partial class frmProgreso : Form
    {
        public frmProgreso()
        {
            InitializeComponent();
        }

        private void frmProgreso_Load(object sender, EventArgs e)
        {
            timer1.Enabled = true;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {

            if (progressBar1.Value < 100)
            {
                progressBar1.Value = progressBar1.Value + 10;
                label2.Text = "CARGANDO EL SISTEMA AL " + progressBar1.Value + "%";
            }
            else
            {
                timer1.Enabled = false;
                this.Hide();
                frmLogin frm = new frmLogin(); frm.Show();
            }
        }

    
    }
}
